/**
 * 
 */
package three_star_craft;

import three_star_craft.uap.UapSigNo;

/**
 * Base class for all events handled by generators
 * 
 * @author w.antosiewic
 */
public abstract class EventData
{
	protected UapSigNo _sigNo;
	
	protected EventData(UapSigNo sigNo)
	{
		_sigNo = sigNo;
	}
	
	/**
	 * Returns signal number of this event which uniquely identifies it
	 * @return signal number of the event
	 */
	public UapSigNo sigNo()
	{
		return _sigNo;
	}
	
	@Override
    public String toString()
	{
		StringBuilder sb = new StringBuilder("Event:");
		sb.append(_sigNo.value).append(":").append(_sigNo.name);
		return sb.toString();
	}
}
